<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul {
            width: 600px;
            height: 50px;
        }

        li {
            position: relative;
            float: left;
        list-style: none;
            width: 100px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            transition: 3s;
            transform-style: preserve-3d;

        }

        a {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            width: 100px;
            height: 50px;
            float: left;
            text-decoration: none;
        }
        a:nth-child(2n+1){
            background: green;
            transform: translateZ(25px);
        }
        a:nth-child(2n){
            background: pink;
            transform: rotateX(90deg) translateZ(25px);
        }
        li:hover{
            transform: rotateX(-90deg);
        }

    </style>
    <ul>
        <li><a href="">传智播客</a><a href="">web前端</a></li>
        <li><a href="">传智播客</a><a href="">web前端</a></li>
        <li><a href="">传智播客</a><a href="">web前端</a></li>
        <li><a href="">传智播客</a><a href="">web前端</a></li>
        <li><a href="">传智播客</a><a href="">web前端</a></li>
        <li><a href="">传智播客</a><a href="">web前端</a></li>
    </ul>
</body>

</html>